package org.demo.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.security.core.GrantedAuthority;
/**
 * 角色
 * @author garca
 *
 */
@Data
@Accessors(chain = true)
public class Role implements GrantedAuthority {
	private static final long serialVersionUID = 1L;
	
	private Long id;
	
	private String name;

	@Override
	public String getAuthority() {
		return name;
	}

}
